/**********************************************************************************
// Asteroids Race 
//
// Creation:	07 Out 2009
// Updated:		18 Apr 2011
// Compiler:	Visual Studio 2010
//
// Notes:		GameOver
//
**********************************************************************************/

#include "Asteroids.h"

/**********************************************************************************/

void Asteroids::GameOverLogic()
{
	// Return Home 
	if (input.KeyPressRelease(DIK_H))
	{
		snd.Play(TRANSITION,0);
		snd.Play(INTRO,1);
		gameState = HOME;
	}

	// Restart Key 
	if (input.KeyPressRelease(DIK_R))
	{
		snd.Play(TRANSITION,0);
		snd.Play(INTRO,1);
		gameState = prevState;
	}
}

/**********************************************************************************/

void Asteroids::GameOverDraw()
{
	sprintf_s(text, "GAME OVER");
	sysFont->Draw(finPosX-100, finPosY-35, text, Color(0,255,0), 200, 30, DT_CENTER);

	sprintf_s(text, "<R> - Restart Level        <H> - Home Screen        <ESC> - Exit Game");
	sysFont->Draw(0, GetWindowHeight()-30, text, Color(128,128,128), GetWindowWidth(), 30, DT_CENTER);
}

/**********************************************************************************/